home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / ada / adaed-1.11 / adaed-1 / Adaed-1.11.0a / cdecom < prev    next >
Encoding:
Text File  |  1992-02-07  |  714 b   |  18 lines

  1.  
  2. # This is a shell script version of the program which transforms a
  3. #  .vbs file into a .h file.  It simply strips away blocks of commentary
  4. #  from a verbose version of a header file. It reads from standard
  5. #  input and writes to standard out.
  6. #
  7. # The definition of a block comment is simple-minded and wrong - it
  8. #  could be dangerous to use this script on sources that aren't
  9. #  written with it in mind.  The sed script simply removes all lines
  10. #  between a line that opens a comment after only white space, and
  11. #  the line containing the matching close of the comment. The
  12. #  first sed line takes care of the case where the comment is on one
  13. #  line.
  14.  
  15. sed -e '
  16.   /^[     ]*\/\*.*\*\// d
  17.   /^[     ]*\/\*/,/\*\// d' 
  18.